package cn.myj2c.executor.values;

import cn.myj2c.utils.Utils;
import org.objectweb.asm.tree.AbstractInsnNode;

public class JavaAddress extends JavaValue {

    private final AbstractInsnNode value;

    public JavaAddress(AbstractInsnNode value) {
        this.value = value;
    }

    @Override
    public JavaValue copy() {
        return new JavaAddress(value);
    }

    public Object value() {
        return this.value;
    }

    public String toString() {
        return "JavaAddress(addr=" + Utils.prettyprint(this.value) + ")";
    }
}
